package com.niiwoo.civet.mobile.vo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by dell on 2017/11/29.
 */
@Setter
@Getter
@ApiModel("我要投资列表标的参数")
public class InvestingProjectVO {
	@ApiModelProperty("标的id")
	private Long projectId;
	@ApiModelProperty("标的类型：1:个人极速借 2:机构极速借 3:你我云贷")
	private Byte projectType;
	@ApiModelProperty("借款用户id")
	private String borrowerUserId;
	@ApiModelProperty("借款人头像")
	private String borrowerHeadImage;
	@ApiModelProperty("借款人昵称")
	private String borrowerNickName;
	@ApiModelProperty("借款人性别:(0、未知 1、男 2、女)")
	private Byte borrowerGender;
	@ApiModelProperty("借款人你我分")
	private Integer borrowerNiiwooScore;
	@ApiModelProperty("复借笔数")
	private Integer loanTimes;
	@ApiModelProperty("借款人发布借款申请地址市")
	private String city;
	@ApiModelProperty("借款人发布借款申请地址区")
	private String area;
	@ApiModelProperty("发布时间")
	private String publishTime;
	@ApiModelProperty("借款用途")
	private String title;
	@ApiModelProperty("年化利率(10%则返回0.1)")
	private BigDecimal borrowRate;
	@ApiModelProperty("年化利率*100(10%则返回10)")
	private String borrowRateDesc;
	@ApiModelProperty("期限")
	private Integer deadline;
	@ApiModelProperty("期数单位(1:月，2:天)")
	private Byte deadlineUnit;
	@ApiModelProperty("总金额")
	private BigDecimal contractAmount;
	@ApiModelProperty("可投金额")
	private BigDecimal investingAmount;
	@ApiModelProperty("标的状态：1可投，2已抢光")
	private Integer projectStatus;
	@ApiModelProperty("授信额度类型(0:未知,1:社保,2:芝麻,3:学历,4:融360,5:自有资质,6:融360自有资质,7:信用卡,8:房产证,9:装修项目,10:车辆)")
	private Byte creditType;
	@ApiModelProperty("借款人类型(1:个人，2:企业)")
	private Byte borrowerType;
	@ApiModelProperty("获取可使用红包列表时使用")
	private Integer userPrizeSuitProjectType;
	@ApiModelProperty("活动信息")
	private ActivityInfo activityInfo;
	@ApiModelProperty("贷款类型(1:社保贷，2:信用卡贷，3:房抵贷，4:车抵贷，5:供应链贷，6:极速贷，9:其它, 10:消费贷, 11:生意贷) ")
	private Byte loanType;
	@ApiModelProperty("贷款类型(社保贷，信用卡贷，房抵贷，车抵贷，供应链贷，极速贷，其它, 消费贷， 生意贷) ")
	private String loanTypeDesc;
	@ApiModelProperty("是否主借人?0.否;1.是")
	private Byte isMasterBorrower;
	@ApiModelProperty("起投金额")
	private BigDecimal baseInvestMoney;
	@ApiModelProperty("还款方式(1到期本息，2等额本息，3先息后本)")
	private Byte repaymentType;
	
	@Getter
	@Setter
	public static class ActivityInfo{
		@ApiModelProperty("加息年化率10%则返回10")
		private BigDecimal increaseInterest;
		@ApiModelProperty("活动名称")
		private String activityTitle;
	}

}